<template>
    <el-result title="404" sub-title="很抱歉，访问错误">
        <template #icon>
            <el-image src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" />
        </template>
        <template #extra>
            <el-button type="primary" @click="goback()">返回</el-button>
        </template>
    </el-result>
</template>
  

<script setup lang="ts">
let router = useRouter();
const goback = () => {
    let token = localStorage.getItem('token')
    if (token) {
        router.push('/homeview')
    } else {
        router.push('/login')
    }
    // router.push('')
}
</script>

<style scoped></style>